from base import Base
from common import CommonMixin
from sqlalchemy import String, Integer, Column
""" 日志表 """


class SysLog(Base, CommonMixin):
    __tablename__ = 'sys_log'

    id = Column(Integer, primary_key=True, comment='主键ID', autoincrement=True)
    url = Column(String(64), comment="请求url")
    method = Column(String(10), comment="请求方法")
    ip = Column(String(20), comment="请求ip")
    params = Column(String(255), comment="请求参数")
    spend_time = Column(String(30), comment="响应时间")
    create_time = Column(String(30), comment="创建时间")